<template>
	<view class="mainpadding">
		<view class="sanshier xiaocheng" v-if="dataAll.status==1">处理中</view>
		<view class="sanshier xiaolv" v-if="dataAll.status==2">已处理</view>
		<view class="mainpadding_top ffffff radius">
			<view class="flexbetween">
				<view class="titletext hei_text bold">需求类别</view>
				<view class="main_size xiaohui"><text class="lable">{{dataAll.type==1?'诉求':'建议'}}</text></view>
			</view>
			<view class="flexbetween margin_top">
				<view class="titletext hei_text bold ">问题标签</view>
				<view class="main_size xiaohui">{{dataAll.fwtype.name}}</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="titletext hei_text bold">联系人</view>
				<view class="main_size xiaohui ">{{dataAll.username}}</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="titletext hei_text bold">电话</view>
				<view class="main_size xiaohui">{{dataAll.mobile}}</view>
			</view>
			
		</view>
		<view class="mainpadding_top ffffff radius">
			<view class="titletext hei_text bold">问题描述</view>
			<view class="main_size xiaohui fonweight margin_top">{{dataAll.title}}</view>
			<view class="main_size xiaohui margin_top">{{dataAll.des}}</view>
			<view class="flexleft flex_wrap">
				<view class="flexcenter ershiw margin_top" v-for="(ite,inde) in dataAll.images_text" :key="inde"
					@click.stop="lbtpriview(inde,dataAll.images_text)">
					<image style="width: 150rpx;height: 152rpx;" :src="ite" mode=""></image>
				</view>
			</view>
		</view>
		<view class="mainpadding_top ffffff flexbetween radius" v-if="dataAll.comment_status!=0">
			<view class="titletext hei_text bold">评价详情</view>
			<view class="flexcolumn margin_right6" v-if="dataAll.comment_status==1">
				<image src="../../static/image/system/pjs1.png" mode="" class="pjimg"></image>
				<view class="strongtext margin_top1 xiaohuang">非常满意</view>
			</view>
			<view class="flexcolumn margin_right6" v-if="dataAll.comment_status==2">
				<image src="../../static/image/system/pjs2.png" mode="" class="pjimg"></image>
				<view class="strongtext margin_top1 xiaohuang">满意</view>
			</view>
			<view class="flexcolumn margin_right6" v-if="dataAll.comment_status==3">
				<image src="../../static/image/system/pjs3.png" mode="" class="pjimg"></image>
				<view class="strongtext margin_top1 xiaohuang">一般</view>
			</view>
		</view>
		<view class="mainpadding_top ffffff radius">
			<view class="titletext hei_text bold">处置流程</view>
			<YSteps lineNum='0' color='#fff' backgroundColor='#ff480a' :infoList='dataAll.sjrecord'></YSteps>
		</view>
		<view class="gudingdb mainpadding" v-if="dataAll.comment_status==0">
			<view class="bigbtn" @click="jumpdetail('/pages/qinglaishuo/pingjia?id=',listid)">评价</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	import YSteps from '@/components/Y-Steps/Y-Steps.vue'
	export default {
		components: {
			YSteps
		},
		data() {
			return {
				dataAll: {},
				listid:""
			}
		},
		onLoad(options) {
			this.listid = options.id
		},
		onShow() {
			this.getdetail()
		},
		methods: {
			getdetail(){
				httpRequest.request("/api/user/sjDetail", 'GET', {
					id:this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #f6f6f6;
	}
	.pjimg{
		width: 76rpx;
		height: 76rpx;
	}
</style>
<style>

</style>